package com.kantboot.functional.im.controller;

import com.kantboot.functional.im.service.IFunctionalImWebSocketService;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/functional-im/websocket")
public class FunctionalImWebsocketController {

    @Resource
    private IFunctionalImWebSocketService functionalWebSocketService;

    /**
     * 生成cid
     */
    @RequestMapping("/generateCid")
    public RestResult<String> generateCid() {
        return RestResult.success(functionalWebSocketService.generateCid(),"generateSuccess","生成成功");
    }


}
